<?php
/**
 * Created by PhpStorm.
 * User: zsd
 * Date: 2018/4/28
 * Time: 上午10:21
 */
namespace backend\controllers;

use backend\models\UserSearch;
use common\controllers\BaseController;
use common\traits\DataProviderPagination;

class UserController extends BaseController
{
    use DataProviderPagination;

    public function actionLists()
    {
        $model        = new UserSearch();
        $dataProvider = $model->search(\Yii::$app->getRequest()->queryParams);

        return $this->returnPagination($dataProvider);
    }
}
